<? #//v.3.3.0
$NOW = date("YmdHis",mktime(date("H")+$SETTINGS['timecorrection'],date("i"),date("s"),date("m"), date("d"),date("Y")));
#///////////////////////////////////////////////////////
#// COPYRIGHT 2007 Phpauction.org ALL RIGHTS RESERVED //
#///////////////////////////////////////////////////////

?>

   <?php /*
 
 <!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!----------- The Following Varaibles Are Available For Use In The HEADER ------------->
<!-- The $variable name must be not changed in order for the item show in the browser -------->
<!-- You can place these variables between <DIV> </DIV> or <SPAN> </SPAN> tags for CSS markup --------->
<!-- NOTE: To use a $variable it needs to be placed in PHP < ? ? > brackets as you can see below ------>

                                      <!--
Categories List 
----------------------------------------- 
$categories_select        Setup In Admin
$categories_list          Setup In Admin   
                       
Current Time 
----------------------------------------      
$current_date_time        Setup In Admin
                                          
User Counter
----------------------------------------        
$users_online_counter 
                                         
Page Info 
----------------------------------------                                 
$page_title               Setup In Admin   
$logo                     Setup In Admin       
$meta_tag_description     Setup In Admin       
$meta_tag_keywords        Setup In Admin       
$banner                   Setup In Admin       
                                       
Login Form
----------------------------------------                                
$header_login_form_complete   
$header_login_form_start  
$header_login_form_username_label     
$header_login_form_username_input    
$header_login_form_password_label    
$header_login_form_password_input    
$header_login_form_remember_me_checkbox_and_label  
$header_login_form_remember_me_hidden     
$header_login_form_submit_button         
$header_login_form_forgot_password_link    
$header_login_form_end     
                              
Search Form 
----------------------------------------                  
$search_form     
                             
Links
----------------------------------------                       
$home_link      
$logout_link           
$register_link           
$user_login_link    
$forgot_password_link  
$search_link          
$browse_categories_link 
$buy_bids_link  
$about_us_link  
$contact_us_link 
$help_link      
$feedback_link  
$live_auction_link 
$upcoming_auction_link  
$send_to_a_friend_link  
$privacy_policy_link 
$terms_and_conditions_link 
 
** These links should only be 
** shown to logged in users.

$edit_profile_link 
$item_watch_link  
$user_bids_link  
$user_wins_link  
$user_payments_link 

Plain Text Info                         
-----------------------------------------
$user_email		             
$user_real_name            
$user_name                
$user_bids_remaining      
                     
     -->    
<!---------------- End ITEM Display Variables ------------------->      


 */
 
 ?>



    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>

<!-- Title -->

<title> <?php print $page_title  ; ?> </title>

<!-- Meta Tags -->
<?php print $meta_tag_description ; ?>

<?php print $meta_tag_keywords ; ?>



<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">



<?php /*
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!-- THIS IS THE CSS STYLESHEET FOR NON INTERNET EXPLORER BROWSER -->
*/ ?>

<![if !IE]>
<link rel="stylesheet" type="text/css" href="global_not_ie.css" />
<![endif]>


<?php /*
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!-- THIS IS THE CSS STYLESHEET FOR INTERNET EXPLORER BROWSER -->
*/ ?>

<!--[if gte IE 6]>
<link rel="stylesheet" type="text/css" href="global_ie.css" />
<![endif]-->




<?php /*
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!-- Do Not Erase JavaScript Links Below or JavaScript Code  -->

*/ ?>


<script type="text/javascript" src="js/global_utilities.js" language="Javascript"></script>
<script type="text/javascript" src="js/ajax_global.js" language="Javascript"></script>
<script type="text/javascript" src="js/SpryEffects.js" language="Javascript"></script>

<script type="text/javascript" language="Javascript">


    <?php print   $live_and_upcoming_auction_javascript ; ?>


</script>


</head>

  <?php /*
      <!--------READ READ READ READ READ READ READ READ-------->
   <!--------READ READ READ READ READ READ READ READ-------->
   <!--------READ READ READ READ READ READ READ READ-------->
   <!--  DO CHANGE OR DELETE < ? print $body_tag_onload; ? > BELOW --> */

?>


<?php print $body_tag_onload; ?>








<DIV CLASS=PAGE_WRAPPER >

<DIV class=PAGE_WRAPPER_TOP >

</DIV>


<DIV class=PAGE_WRAPPER_MIDDLE >


  <DIV class=NAVIGATION_HEADER >




<DIV class=LOGO>

     <!--     <A href=index.php>
 <img src="images/logo.jpg" border=0> 

      </A>  -->
  
            <?
        if($SETTINGS['logo']) {
        ?>
          <a href="<?=$SETTINGS['siteurl']?>index.php?"><img src="<?=$SETTINGS['siteurl'].phpa_uploaded(false).$SETTINGS['logo'];?>" border="0" alt="<?=$SETTINGS['sitename']?>"/></a> 
          <?
        } else {
     print $logo;
        }
        ?>
      
         
      
      
    </DIV>
  
 <DIV class=SPACER >   
            
                       </DIV>
   <?php
 /*
      <!--------READ READ READ READ READ READ READ READ-------->
   <!--------READ READ READ READ READ READ READ READ-------->
   <!--------READ READ READ READ READ READ READ READ-------->
   <!-- CHECK TO SEE IF LOGGED IN ---------------------------> */
        
        if($_SESSION["PHPAUCTION_LOGGED_IN"]) {
          	/* user is logged in */
	  	?>
  
       <DIV class=LOGIN_1 >
        
      <?php
  
$logged_in_header = "Hello";
$logged_in_header .= "&nbsp;";
$logged_in_header .= $_SESSION['PHPAUCTION_LOGGED_IN_USERNAME'];
$logged_in_header .= " You Have";
 
  echo $logged_in_header;
  
      ?>
         </DIV>
       
<DIV class=LOGIN_2>        
      
  <DIV class=BIDS_REMAINING_BOX id="BIDSID"> 
  
  <?php
  
  $id2 = $_SESSION["PHPAUCTION_LOGGED_IN"];
  
  $query = mysql_fetch_array(mysql_query("SELECT bids_remaining FROM PHPAUCTIONXL_users WHERE id=$id2 "));
  
  
echo $query['bids_remaining'];
  
 ?>
   
  </DIV>
   
  <DIV class=BIDS_LEFT_TEXT >             
              
              Bids<BR>Left.
              
              </DIV>
              
   </DIV>           
               
        <?php
        } else {
         
          	/* user not logged in, give link to register or login */
		?>
  		
	<form name="user_login" action="user_login.php?" method=POST>
<DIV class=LOGIN_FORM><input type="TEXT" class="INPUTAREA" name="username" size="20" maxlength="20" value="Username" /><B> & </B> <input class="INPUTAREA" type="TEXT" name="password" size="20" maxlength="20" value="Password" /> 

<input type="hidden" name=rememberme value=1 /><input type="hidden" name="action" value="login" />

</DIV>
<DIV class=LOGIN_BUTTON>
<INPUT TYPE="image" SRC="images/login.jpg" BORDER="0" ALT="Submit Form" value=submit>
</DIV>
</form>
  
<DIV class=FORGOT_PASSWORD> 

</a><a href="forgotpasswd.php">Forgot Password?</a>

</DIV>
       <?php
        }
		?>
 
 
 
 
 

<DIV class=NAVIGATION_BAR>   


  <?php    
        if($_SESSION["PHPAUCTION_LOGGED_IN"]) {
          	/* user is logged in, give link to edit data or log out */
	  	?>
	  	
<A HREF="buybids.php?id=<?php print $id; ?>" id="NAVIGATION_BAR_LINK_SIGNUP">[ Buy Bids! ]</font></A></font>




        <?php
        } else {
        
        
          	/* user not logged in, give link to register or login */
		?>
		
		
<A HREF="register.php" id="NAVIGATION_BAR_LINK_SIGNUP">[ Sign-Up FREE ! ]</A>



       <?php
        }
		?>


 <A HREF="register.php" id="NAVIGATION_BAR_LINKS_2">|</A>  <A HREF="about_us.php"  id="NAVIGATION_BAR_LINKS_1"> About Us </A> <A HREF="register.php" id="NAVIGATION_BAR_LINKS_2">|</A> <A rel="submenu1" HREF="contact_us.php" class="anchorclass" id="NAVIGATION_BAR_LINKS_1">Contact Us </A>  <A HREF="register.php" id="NAVIGATION_BAR_LINKS_2">|</A>  <A rel="submenu2" HREF="help.php" class="anchorclass" id="NAVIGATION_BAR_LINKS_1"> Help!</A>   <A HREF="register.php" id="NAVIGATION_BAR_LINKS_2">|</A>   <A HREF="index.php" id="NAVIGATION_BAR_LINKS_1">HOME </A>


</DIV>



<DIV class=NAVIGATION_BAR_TEXT>    





  <?php    
        if($_SESSION["PHPAUCTION_LOGGED_IN"]) {
          	/* user is logged in, give link to edit data or log out */
	  	?>

        
Control Panel: [<A href="edit_data.php">Edit Profile</A>] [<A href="item_watch.php">Item Watch</A>] History: [<A href="yourbids.php">Bid</A>] [<A href="buying.php">Win</A>]  [<A href="payments.php">Payment</A>]        
        <A href="logout.php">[LOGOUT]</A>



        <?php
        } else {
        
        
          	/* user not logged in, give link to register or login */
		?>

<CENTER><A HREF= >Put Your Links Or Text Here</A></CENTER> 





       <?php
        }
		?>




</DIV>

</DIV>
    
    